import http from "./request";
async function getBanner() {
  let { data } = await http.get("/banner/list");
  return data;
}
//轮播图接口

async function getList() {
  let { data } = await http.get("/cms/news/list");
  return data;
}
//获取列表

async function getDetail(id) {
  let { data } = await http.get("/cms/news/detail?id=" + id);
  return data;
}
//获取详情

async function getcateList() {
  let { data } = await http.post("/shop/goods/category/all");
  return data;
}

export { getBanner, getList, getDetail, getcateList };
